import { PORT1 } from "@/api/config/servicePort";
import Http from "@/api/index";

const bs = PORT1 + "/operate";

export const list = () => {
  return Http.get(bs + "/list");
};

export const add = (params: any) => {
  return Http.post(bs + "/add", params);
};

export const edit = (params: any) => {
  return Http.put(bs + "/edit", params);
};

export const deleteOp = (ids: any) => {
  return Http.post(bs + "/delete", ids);
};

export const changeStatus = (params: any) => {
  return Http.put(bs + "/status", params);
};
